<template>
  <VmImageList class="vm-margin" v-if="isRouterAlive"></VmImageList>
</template>

<script>
  import VmImageList from '@/components/vm-image-list'
  export default {
    name: 'ImageList',
    provide () {
      return {
        reload:this.reload
      }
    },
    data() {
      return {
        isRouterAlive: true
      }
    },
    methods: {
      reload() {
        this.isRouterAlive = false
        this.$nextTick(function () {
          this.isRouterAlive = true
        })
      }
    },
    components: {
      VmImageList
    }
  }
</script>
